<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!-- 内容 -->
		<div style="width: 719px; height: 495px;" id="content">
			<div style="height: 30px;" id="pronav"><p>商品管理&gt;商品分类</p></div>
			<div style="width: 719px;" id="prolist">
             <table id="ListUserTable">
	<thead>
	<tr>
	<th class="username">分类ID</th>
	<th class="username">分类名称</th>
	<th class="categorydescription">分类描述</th>
	<th class="useremail">分类上级ID</th>
	<th class="useroperation">操作</th>

	</tr>
	</thead>
	<tbody>
	
			<c:forEach items="${requestScope.categories }" var="category" >

	<tr>
	
	<td class="username"><span>${category.id }</span></td>
	<td class="username"><span>${category.categoryName }</span></td>
	<td class="categorydescription"><span>${category.categoryDesc }</span></td>
    <td class="useremail"><span>${category.superiorId }</span></td>
	<td class="useroperation"><span><a href="categoryadd.do?id=${category.id }&editModel=addsub">添加子类别</a>&nbsp;&nbsp;<a href="categoryupdate.do?id=${ category.id}">修改</a>&nbsp;&nbsp;<a href="categorydelete.do?id=${category.id }">删除</a></span></td>
	</tr>
	  </c:forEach>
	

	</tbody>
	</table>


		  </div>
			
		</div>
	<!-- 内容结束 -->



